﻿@if (Request.IsAuthenticated)
{
    <text>
    Hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })! <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
    @using (Html.BeginForm("logoff", "account", FormMethod.Post, new { id = "logoutForm" }))
    {
        @Html.AntiForgeryToken()
    }
    </text>
}
else
{
    <text>
    @Html.ActionLink("Register", "register", "account", routeValues: null, htmlAttributes: new { id = "registerLink" })
    or
    @Html.ActionLink("Log in", "login", "account", routeValues: null, htmlAttributes: new { id = "loginLink" })
    </text>
}
